package com.swxy.club;

import com.swxy.club.utils.AesUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.client.RestTemplate;

/**
 * @author 易
 */

@SpringBootApplication
@EnableRedisHttpSession
@Validated
@EnableCaching
public class UserApplication {


    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);

    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
